package de.hsb.ai.domain.action;

import game.Move;
import jade.content.AgentAction;
import jade.util.leap.ArrayList;

import java.util.List;

public class GetMove implements AgentAction {

	private static final long serialVersionUID = 4063284510916978196L;
	
	private jade.util.leap.ArrayList options = new ArrayList();
	
	public void addOptions(Move m) {
		this.options.add(m);
	}
	
	public void setAllOptions(jade.util.leap.ArrayList options) {
		this.options = options;
	}
	
	public jade.util.leap.List getAllOptions() {
		return options;
	}

	public void setOptions(List<Move> options) {
		this.options.fromList(options);
	}

	@SuppressWarnings("unchecked")
	public List<Move> getOptions() {
		return options.toList();
	}
	
}
